<?php

declare(strict_types=1);
/**
 * This file is part of habo_new_media.
 *
 * @link     https://www.berlen.cn/
 * @contact  tech@berlen.cn
 * @license  http://gitlab.rehou.cn/habo/habo_new_media/-/blob/master/README.md
 */
namespace app\enum;

class FsCodeEnum
{
    /**
     * @var int 成功
     */
    public const SUCCESS = 0;

    /**
     * @var int 错误
     */
    public const ERROR = 400;

    /**
     * @var int 参数错误
     */
    public const PARAM_ERROR = 401;

    /**
     * @var int 业务错误
     */
    public const BUSINESS_ERROR = 402;

    /**
     * @var int 签名错误
     */
    public const SIGN_ERROR = 403;

    /**
     * @var int 请求丢失
     */
    public const NOT_FOUND_ERROR = 404;

    /**
     * @var int 请求错误
     */
    public const REQUEST_ERROR = 500;

    /**
     * @var int 请求过期
     */
    public const TIMEOUT_ERROR = 501;

    /**
     * @var int 服务器错误
     */
    public const SERVER_ERROR = 502;

    /**
     * @var int 用户未登录
     */
    public const TOKEN_ERROR = 503;

    /**
     * @var array 消息内容
     */
    public const CODE_MESSAGE = [
        0 => '成功',
        400 => '未知错误',
        401 => '参数错误',
        402 => '业务错误',
        403 => '签名错误',
        404 => '请求丢失',
        500 => '请求错误',
        501 => '请求过期',
        502 => '服务器错误',
        503 => '用户未登录',
    ];
}
